package com.haitao.controller;

import com.haitao.common.pojo.EUDataGridResult;
import com.haitao.po.ItemPo;
import com.haitao.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2017/5/14 20:51
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/5/14 20:51
 */
@Controller
@RequestMapping("/item")
public class ItemController {

    @Autowired
    private ItemService itemService;

    @RequestMapping("/list")
    @ResponseBody
    public EUDataGridResult getItemList(Integer page, Integer rows) {
        EUDataGridResult result = itemService.getItemList(new ItemPo(),page, rows);
        return result;
    }
}
